package com.yellowframework.cloud.api.system;

import com.yellowframework.cloud.common.model.response.ObjectResponseResult;
import com.yellowframework.cloud.common.model.response.QueryResponseResult;
import com.yellowframework.cloud.common.model.response.ResponseResult;
import com.yellowframework.cloud.domain.system.SysMenu;
import com.yellowframework.cloud.domain.system.ext.SysMenuExt;
import com.yellowframework.cloud.domain.system.response.NavigationResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "系统菜单")
public interface SysMenuControllerApi {

    @ApiOperation("导航菜单")
    NavigationResult nav();

    @ApiOperation("所有菜单列表")
    QueryResponseResult<SysMenuExt> list();

    @ApiOperation("选择菜单(添加、修改菜单)")
    QueryResponseResult<SysMenu> select();

    @ApiOperation("菜单信息")
    ObjectResponseResult<SysMenu> info(Integer menuId);

    @ApiOperation("保存")
    ResponseResult save(SysMenu menu);

    @ApiOperation("修改")
    ResponseResult update(Integer menuId, SysMenu menu);

    @ApiOperation("删除")
    ResponseResult delete(Integer menuId);
}
